for i in range(0,8,1):
    fout = open('run'+str(i)+'.bat','w')
    fout.write('python HealthySpider.py '+str(i)+' 8 tasks.tmp\n')
    fout.close()
    allout = open('launch.bat','a')
    allout.write('start run'+str(i)+'.bat\n')
